Optimal. Leaf size=176 \[ -\frac {(4 A-B) x}{a^4}+\frac {2 (332 A-80 B+3 C) \sin (c+d x)}{105 a^4 d}-\frac {(88 A-25 B-3 C) \sin (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}-\frac {(4 A-B) \sin (c+d x)}{a^4 d (1+\sec (c+d x))}-\frac {(A-B+C) \sin (c+d x)}{7 d (a+a \sec (c+d x))^4}-\frac {(12 A-5 B-2 C) \sin (c+d x)}{35 a d (a+a \sec (c+d x))^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.39, antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.128, Rules used = {4169, 4105,
3872, 2717, 8} \begin {gather*} \frac {2 (332 A-80 B+3 C) \sin (c+d x)}{105 a^4 d}-\frac {(88 A-25 B-3 C) \sin (c+d x)}{105 a^4 d (\sec (c+d x)+1)^2}-\frac {(4 A-B) \sin (c+d x)}{a^4 d (\sec (c+d x)+1)}-\frac {x (4 A-B)}{a^4}-\frac {(12 A-5 B-2 C) \sin (c+d x)}{35 a d (a \sec (c+d x)+a)^3}-\frac {(A-B+C) \sin (c+d x)}{7 d (a \sec (c+d x)+a)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2717
Rule 3872
Rule 4105
Rule 4169
Rubi steps
\begin {align*} \int \frac {\cos (c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^4} \, dx &=-\frac {(A-B+C) \sin (c+d x)}{7 d (a+a \sec (c+d x))^4}+\frac {\int \frac {\cos (c+d x) (a (8 A-B+C)-a (4 A-4 B-3 C) \sec (c+d x))}{(a+a \sec (c+d x))^3} \, dx}{7 a^2}\\ &=-\frac {(A-B+C) \sin (c+d x)}{7 d (a+a \sec (c+d x))^4}-\frac {(12 A-5 B-2 C) \sin (c+d x)}{35 a d (a+a \sec (c+d x))^3}+\frac {\int \frac {\cos (c+d x) \left (a^2 (52 A-10 B+3 C)-3 a^2 (12 A-5 B-2 C) \sec (c+d x)\right )}{(a+a \sec (c+d x))^2} \, dx}{35 a^4}\\ &=-\frac {(88 A-25 B-3 C) \sin (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}-\frac {(A-B+C) \sin (c+d x)}{7 d (a+a \sec (c+d x))^4}-\frac {(12 A-5 B-2 C) \sin (c+d x)}{35 a d (a+a \sec (c+d x))^3}+\frac {\int \frac {\cos (c+d x) \left (a^3 (244 A-55 B+6 C)-2 a^3 (88 A-25 B-3 C) \sec (c+d x)\right )}{a+a \sec (c+d x)} \, dx}{105 a^6}\\ &=-\frac {(88 A-25 B-3 C) \sin (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}-\frac {(A-B+C) \sin (c+d x)}{7 d (a+a \sec (c+d x))^4}-\frac {(12 A-5 B-2 C) \sin (c+d x)}{35 a d (a+a \sec (c+d x))^3}-\frac {(4 A-B) \sin (c+d x)}{d \left (a^4+a^4 \sec (c+d x)\right )}+\frac {\int \cos (c+d x) \left (2 a^4 (332 A-80 B+3 C)-105 a^4 (4 A-B) \sec (c+d x)\right ) \, dx}{105 a^8}\\ &=-\frac {(88 A-25 B-3 C) \sin (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}-\frac {(A-B+C) \sin (c+d x)}{7 d (a+a \sec (c+d x))^4}-\frac {(12 A-5 B-2 C) \sin (c+d x)}{35 a d (a+a \sec (c+d x))^3}-\frac {(4 A-B) \sin (c+d x)}{d \left (a^4+a^4 \sec (c+d x)\right )}-\frac {(4 A-B) \int 1 \, dx}{a^4}+\frac {(2 (332 A-80 B+3 C)) \int \cos (c+d x) \, dx}{105 a^4}\\ &=-\frac {(4 A-B) x}{a^4}+\frac {2 (332 A-80 B+3 C) \sin (c+d x)}{105 a^4 d}-\frac {(88 A-25 B-3 C) \sin (c+d x)}{105 a^4 d (1+\sec (c+d x))^2}-\frac {(A-B+C) \sin (c+d x)}{7 d (a+a \sec (c+d x))^4}-\frac {(12 A-5 B-2 C) \sin (c+d x)}{35 a d (a+a \sec (c+d x))^3}-\frac {(4 A-B) \sin (c+d x)}{d \left (a^4+a^4 \sec (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(567\) vs. \(2(176)=352\).
time = 2.05, size = 567, normalized size = 3.22 \begin {gather*} \frac {\sec \left (\frac {c}{2}\right ) \sec ^7\left (\frac {1}{2} (c+d x)\right ) \left (-7350 (4 A-B) d x \cos \left (\frac {d x}{2}\right )-7350 (4 A-B) d x \cos \left (c+\frac {d x}{2}\right )-17640 A d x \cos \left (c+\frac {3 d x}{2}\right )+4410 B d x \cos \left (c+\frac {3 d x}{2}\right )-17640 A d x \cos \left (2 c+\frac {3 d x}{2}\right )+4410 B d x \cos \left (2 c+\frac {3 d x}{2}\right )-5880 A d x \cos \left (2 c+\frac {5 d x}{2}\right )+1470 B d x \cos \left (2 c+\frac {5 d x}{2}\right )-5880 A d x \cos \left (3 c+\frac {5 d x}{2}\right )+1470 B d x \cos \left (3 c+\frac {5 d x}{2}\right )-840 A d x \cos \left (3 c+\frac {7 d x}{2}\right )+210 B d x \cos \left (3 c+\frac {7 d x}{2}\right )-840 A d x \cos \left (4 c+\frac {7 d x}{2}\right )+210 B d x \cos \left (4 c+\frac {7 d x}{2}\right )+60830 A \sin \left (\frac {d x}{2}\right )-19880 B \sin \left (\frac {d x}{2}\right )+2520 C \sin \left (\frac {d x}{2}\right )-46130 A \sin \left (c+\frac {d x}{2}\right )+16520 B \sin \left (c+\frac {d x}{2}\right )-2520 C \sin \left (c+\frac {d x}{2}\right )+46116 A \sin \left (c+\frac {3 d x}{2}\right )-14280 B \sin \left (c+\frac {3 d x}{2}\right )+1764 C \sin \left (c+\frac {3 d x}{2}\right )-18060 A \sin \left (2 c+\frac {3 d x}{2}\right )+7560 B \sin \left (2 c+\frac {3 d x}{2}\right )-1260 C \sin \left (2 c+\frac {3 d x}{2}\right )+19292 A \sin \left (2 c+\frac {5 d x}{2}\right )-5600 B \sin \left (2 c+\frac {5 d x}{2}\right )+588 C \sin \left (2 c+\frac {5 d x}{2}\right )-2100 A \sin \left (3 c+\frac {5 d x}{2}\right )+1680 B \sin \left (3 c+\frac {5 d x}{2}\right )-420 C \sin \left (3 c+\frac {5 d x}{2}\right )+3791 A \sin \left (3 c+\frac {7 d x}{2}\right )-1040 B \sin \left (3 c+\frac {7 d x}{2}\right )+144 C \sin \left (3 c+\frac {7 d x}{2}\right )+735 A \sin \left (4 c+\frac {7 d x}{2}\right )+105 A \sin \left (4 c+\frac {9 d x}{2}\right )+105 A \sin \left (5 c+\frac {9 d x}{2}\right )\right )}{26880 a^4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.90, size = 217, normalized size = 1.23
method | result | size |
derivativedivides | \(\frac {-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{7}+\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B}{7}-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) C}{7}+\frac {7 A \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B +\frac {3 C \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {23 A \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+\frac {11 B \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-C \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+49 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-15 B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+C \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {16 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}-16 \left (4 A -B \right ) \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d \,a^{4}}\) | \(217\) |
default | \(\frac {-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{7}+\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B}{7}-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) C}{7}+\frac {7 A \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B +\frac {3 C \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {23 A \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+\frac {11 B \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-C \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+49 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-15 B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+C \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {16 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}-16 \left (4 A -B \right ) \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d \,a^{4}}\) | \(217\) |
norman | \(\frac {\frac {\left (4 A -B \right ) x}{a}-\frac {\left (4 A -B \right ) x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a}-\frac {\left (A -B +C \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{56 a d}+\frac {\left (7 A -5 B +3 C \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{40 a d}-\frac {\left (65 A -15 B +C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a d}+\frac {\left (71 A -11 B +3 C \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 a d}-\frac {\left (79 A -37 B +9 C \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{84 a d}+\frac {\left (119 A -35 B +C \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 a d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) a^{3}}\) | \(236\) |
risch | \(-\frac {4 A x}{a^{4}}+\frac {x B}{a^{4}}-\frac {i A \,{\mathrm e}^{i \left (d x +c \right )}}{2 a^{4} d}+\frac {i A \,{\mathrm e}^{-i \left (d x +c \right )}}{2 a^{4} d}+\frac {2 i \left (1050 A \,{\mathrm e}^{6 i \left (d x +c \right )}-420 B \,{\mathrm e}^{6 i \left (d x +c \right )}+105 C \,{\mathrm e}^{6 i \left (d x +c \right )}+5250 A \,{\mathrm e}^{5 i \left (d x +c \right )}-1890 B \,{\mathrm e}^{5 i \left (d x +c \right )}+315 C \,{\mathrm e}^{5 i \left (d x +c \right )}+11900 A \,{\mathrm e}^{4 i \left (d x +c \right )}-4130 B \,{\mathrm e}^{4 i \left (d x +c \right )}+630 C \,{\mathrm e}^{4 i \left (d x +c \right )}+14840 A \,{\mathrm e}^{3 i \left (d x +c \right )}-4970 B \,{\mathrm e}^{3 i \left (d x +c \right )}+630 C \,{\mathrm e}^{3 i \left (d x +c \right )}+10794 A \,{\mathrm e}^{2 i \left (d x +c \right )}-3570 B \,{\mathrm e}^{2 i \left (d x +c \right )}+441 C \,{\mathrm e}^{2 i \left (d x +c \right )}+4298 \,{\mathrm e}^{i \left (d x +c \right )} A -1400 B \,{\mathrm e}^{i \left (d x +c \right )}+147 C \,{\mathrm e}^{i \left (d x +c \right )}+764 A -260 B +36 C \right )}{105 d \,a^{4} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{7}}\) | \(301\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 356 vs.
\(2 (168) = 336\).
time = 0.52, size = 356, normalized size = 2.02 \begin {gather*} \frac {A {\left (\frac {1680 \, \sin \left (d x + c\right )}{{\left (a^{4} + \frac {a^{4} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}\right )} {\left (\cos \left (d x + c\right ) + 1\right )}} + \frac {\frac {5145 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {805 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {147 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {15 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}}{a^{4}} - \frac {6720 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{4}}\right )} - 5 \, B {\left (\frac {\frac {315 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {77 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {21 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {3 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}}{a^{4}} - \frac {336 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{4}}\right )} + \frac {3 \, C {\left (\frac {35 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {35 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {21 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {5 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}\right )}}{a^{4}}}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.20, size = 234, normalized size = 1.33 \begin {gather*} -\frac {105 \, {\left (4 \, A - B\right )} d x \cos \left (d x + c\right )^{4} + 420 \, {\left (4 \, A - B\right )} d x \cos \left (d x + c\right )^{3} + 630 \, {\left (4 \, A - B\right )} d x \cos \left (d x + c\right )^{2} + 420 \, {\left (4 \, A - B\right )} d x \cos \left (d x + c\right ) + 105 \, {\left (4 \, A - B\right )} d x - {\left (105 \, A \cos \left (d x + c\right )^{4} + 4 \, {\left (296 \, A - 65 \, B + 9 \, C\right )} \cos \left (d x + c\right )^{3} + {\left (2636 \, A - 620 \, B + 39 \, C\right )} \cos \left (d x + c\right )^{2} + {\left (2236 \, A - 535 \, B + 24 \, C\right )} \cos \left (d x + c\right ) + 664 \, A - 160 \, B + 6 \, C\right )} \sin \left (d x + c\right )}{105 \, {\left (a^{4} d \cos \left (d x + c\right )^{4} + 4 \, a^{4} d \cos \left (d x + c\right )^{3} + 6 \, a^{4} d \cos \left (d x + c\right )^{2} + 4 \, a^{4} d \cos \left (d x + c\right ) + a^{4} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {A \cos {\left (c + d x \right )}}{\sec ^{4}{\left (c + d x \right )} + 4 \sec ^{3}{\left (c + d x \right )} + 6 \sec ^{2}{\left (c + d x \right )} + 4 \sec {\left (c + d x \right )} + 1}\, dx + \int \frac {B \cos {\left (c + d x \right )} \sec {\left (c + d x \right )}}{\sec ^{4}{\left (c + d x \right )} + 4 \sec ^{3}{\left (c + d x \right )} + 6 \sec ^{2}{\left (c + d x \right )} + 4 \sec {\left (c + d x \right )} + 1}\, dx + \int \frac {C \cos {\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}}{\sec ^{4}{\left (c + d x \right )} + 4 \sec ^{3}{\left (c + d x \right )} + 6 \sec ^{2}{\left (c + d x \right )} + 4 \sec {\left (c + d x \right )} + 1}\, dx}{a^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 256, normalized size = 1.45 \begin {gather*} -\frac {\frac {840 \, {\left (d x + c\right )} {\left (4 \, A - B\right )}}{a^{4}} - \frac {1680 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )} a^{4}} + \frac {15 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 15 \, B a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 15 \, C a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 147 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 105 \, B a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 63 \, C a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 805 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 385 \, B a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 105 \, C a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 5145 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1575 \, B a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 105 \, C a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{28}}}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.49, size = 293, normalized size = 1.66 \begin {gather*} \frac {\frac {35\,A\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{64}+\frac {167\,A\,\sin \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{160}+\frac {307\,A\,\sin \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{480}+\frac {2263\,A\,\sin \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )}{13440}+\frac {A\,\sin \left (\frac {9\,c}{2}+\frac {9\,d\,x}{2}\right )}{128}-\frac {B\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8}-\frac {B\,\sin \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{4}-\frac {7\,B\,\sin \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{48}-\frac {13\,B\,\sin \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )}{336}+\frac {3\,C\,\sin \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )}{160}+\frac {C\,\sin \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{160}+\frac {3\,C\,\sin \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )}{560}-\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {35\,A\,\left (c+d\,x\right )}{16}-\frac {35\,B\,\left (c+d\,x\right )}{64}\right )-\frac {21\,A\,\cos \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )\,\left (c+d\,x\right )}{16}-\frac {7\,A\,\cos \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )\,\left (c+d\,x\right )}{16}-\frac {A\,\cos \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )\,\left (c+d\,x\right )}{16}+\frac {21\,B\,\cos \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )\,\left (c+d\,x\right )}{64}+\frac {7\,B\,\cos \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )\,\left (c+d\,x\right )}{64}+\frac {B\,\cos \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )\,\left (c+d\,x\right )}{64}}{a^4\,d\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________